FROM  openjdk:8
#VOLUME /tmp
#ARG JAR_FILE
ENV TZ Asia/Chongqing
#Solve the problem of Chinese garbled in container
ENV LANG C.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL C.UTF-8

EXPOSE 8888
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar","/app.jar"]
